/**
 * Created by yangfan on 2016/11/1.
 */
define(['config/appregister',
    "i18n",
    "business/services/httpServices",
    "business/library/services/httpServices",
    "business/careerPlan/services/httpServices",
    "business/home/services/filterService",
    "business/services/filter"], function (app, i18n, httpService,libHttpServices,carHttpservices) {
    app.controller("careerPlanMainCtrl", function ($scope,DataServices,$state) {
        $scope.i18n = i18n;
        $scope.careerPlan=[];
        for(var i= 0 ; i<12;i++){
            $scope.careerPlan.push("")
        }
        $scope.setSpace = function(index){
            if((index+1)%3 ==0){
                return;
            }else{
                return {
                    "margin-right":"25px"
                }
            }
        };
        $scope.clickItem = function(item,state){
            if(!angular.isNumber(item.hierId)) return;
            /*sessionStorage.hierId = null;
            sessionStorage.hierId = item.hierId;*/
            /*DataServices.goTo(state,{params:item.hierId});*/
            $state.go(state,{hierId:item.hierId})
        };
        function logic (){};
        logic.prototype.init = function(){
            var req = {
                type:"GET",
                data:{
                    pageNo:1,
                    pageSize:12
                },
                uri:"getList"
            };
            carHttpservices.getPlannhierList(req).success(function(response){
                $scope.$apply(function(){
                    $scope.model= response.data;
                })
            })

        };
        var start = new logic();
        start.init();



        $scope.searchKeyWord = function(){
            getThesisList();
        };
    })
});

